﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>@ViewBag.Title</title>
    <!-- Remove these after development --->
    <meta http-equiv="no-cache">
    <meta http-equiv="Expires" content="-1">
    <meta http-equiv="Cache-Control" content="no-cache">
    <!-- --->
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <!-- Le styles -->
    <link href="~/Content/bootstrap.css" rel="stylesheet">
    <link href="~/Content/bootstrap-responsive.min.css" rel="stylesheet">
    @Styles.Render("~/Content/css")
    @*<link href="~/Content/themes/base/jquery.ui.slider.css" rel="stylesheet" />*@
    <style>
        body {
            padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
        }
    </style>
    <script type="text/javascript"
        src="http://maps.googleapis.com/maps/api/js?key=AIzaSyBbrL_hMD1H-4xXQBOEGYdli0PcNerW0kc&sensor=false">
    </script>
    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

</head>

<body>
    <div class="navbar navbar navbar-fixed-top">
        <div class="navbar-inner">
            <div class="container">
                <div class="nav-collapse collapse">
                    <ul class="nav pull-right">
                        <li>
                            @if (Roles.IsUserInRole("Tenant"))
                            {
                                @Html.ActionLink("Profile", "MyProfile", "Tenants");
                            }
                            else if (Roles.IsUserInRole("Landlord"))
                            {
                                @Html.ActionLink("Profile", "Profile", "Landlords");
                            }
                        </li>
                        <li class="dropdown" id="dropdown-login-div">
                            @if (!Request.IsAuthenticated)
                            {
                                <a class="dropdown-toggle" href="#" data-toggle="dropdown">Sign In <strong class="caret"></strong></a>
                            }
                            else
                            {
                                @Html.ActionLink("Log Off", "LogOff", "Account")
                            }
                            <div class="dropdown-menu" id="dropdown-login">
                                @Html.Partial("~/Views/Account/_LoginPartial.cshtml", new ViewDataDictionary<LetLord.Models.LoginModel>())
                            </div>
                        </li>
                    </ul>
                </div>
                <!--/.nav-collapse -->
            </div>
        </div>
    </div>
    <div class="container">
        <div id="banner-container">
            <a href="/">
                <img src="~/Images/logo.PNG" id="logo" />
            </a>
            <img src="~/Images/houses.PNG" id="houses" style="width: 1000px; height: 90px;" />
        </div>
    </div>

    <div class="container">

        @RenderBody()

    </div>
    <!-- /container -->

    <!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    @Scripts.Render("~/bundles/scripts")
    @RenderSection("scripts", required: false)
    <script src="~/Scripts/jquery.uploadify.min.js"></script>
</body>
</html>
